package com.mall.module.product.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("商品属性信息")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ProductAttributeDTO {
    @ApiModelProperty(value = "属性ID", required = true, example = "101")
    @NotNull(message = "属性ID不能为空")
    private Long attributeId;

    @ApiModelProperty(value = "属性值", required = true, example = "陶瓷机身")
    @NotBlank(message = "属性值不能为空")
    private String attributeValue;
}
